package edu.langnan.xiaoli.service.impl;

import edu.langnan.xiaoli.core.dto.VolunteerDTO;
import edu.langnan.xiaoli.mapper.VolunteerMapper;
import edu.langnan.xiaoli.service.VolunteerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cql
 */
@Service
public class VolunteerServiceImpl implements VolunteerService {


    @Autowired
    private VolunteerMapper volunteerMapper;

    @Override
    public List<VolunteerDTO> volunteerList() {
        return volunteerMapper.volunteerList();
    }

    @Override
    public VolunteerDTO findVolunInfo(Integer vid) {
        return volunteerMapper.findVolunInfoById(vid);
    }

    @Override
    public List<VolunteerDTO> studentOfVolunteerList(Integer stuId) {
        return volunteerMapper.studentOfVolunteerList(stuId);
    }

}
